package com.ruoyi.data.feign;

import com.ruoyi.data.vo.QikeUrlRequest;
import com.ruoyi.data.vo.QikeUrlResponse;
import com.ruoyi.data.vo.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.net.URI;
@FeignClient(name = "qike-third-api", url = "${qike.third-api-host:http://127.0.0.1:8080}")
public interface QikeFeign {

  @PostMapping(value = "/third/users/getRedirectUrl", produces = "application/json")
  ResultData<QikeUrlResponse> getUrl(@RequestBody QikeUrlRequest request,
    @RequestHeader("authid") String authId,
    @RequestHeader("timestamp") String timestamp,
    @RequestHeader("reqid") String reqId,
    @RequestHeader("sign") String sign);
}
